import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import rollupJson from '@rollup/plugin-json'

export default {
    input: 'src/pixivTaskHandler.mjs', // 入口文件
    output: [
        {
            file: 'dist/pixivTaskHandler.mjs', // 输出文件路径
            format: 'es', // 输出格式
            sourcemap: false // 生成源码映射
        }
    ],
    plugins: [
        rollupJson(),
        commonjs(),
        resolve({ extensions: ['.mjs', '.js'] }) // 同时解析ES6模块和CommonJS模块的导入
    ]
}
